<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商品详情</title>
    <link rel="stylesheet" href="./css/swiper.css">
    <link rel="stylesheet" href="./css/public.css">
    <style>
        .swiperBox {
            width: 7.573rem;
            margin: 0 auto;
            margin-top: 3px;
            position: relative;
        }

        .slide {
            height: 5.653rem;
        }

        .swiper-pagination-bullet {
            background: rgba(218, 35, 27, 1);
            opacity: 0.2;
            width: 5px;
            height: 5px;
        }

        .swiper-pagination-bullet-active {
            background: rgba(218, 35, 27, 1);
            opacity: 1;
        }

        .swiper-container {
            position: static;
        }

        .swiper-pagination-fraction,
        .swiper-pagination-custom,
        .swiper-container-horizontal>.swiper-pagination-bullets {
            bottom: -0.8rem;
            left: 0;
            width: 100%;
            z-index: 99;
        }

        .com_name {
            padding: 0 0.533rem;
            box-sizing: border-box;
            width: 100%;
            margin-top: 1.066rem;
            padding-top: 0.266rem;
            border-top: 1px solid rgba(0, 0, 0, 0.03);
            color: #333333;
            font-size: 0.373rem;
            align-items: center;
        }

        .status {
            width: 42px;
            height: 16px;
            background: rgba(255, 156, 0, 1);
            border-radius: 8px;
            font-size: 12px;
            text-align: center;
            line-height: 16px;
            background: #FF9C00;
            color: #fff;
            margin-left: 3px;
            transform: scale(0.8);
        }

        .money {
            width: 100%;
            padding: 0 0.533rem;
            box-sizing: border-box;
            color: #DA231B;
            font-size: 0.426rem;
            margin-top: 0.293rem;
        }

        .com_text {
            width: 100%;
            padding: 0 0.533rem;
            box-sizing: border-box;
            color: #999999;
            font-size: 12px;
            margin-top: 0.4rem;
        }

        .supplement {
            width: 8.826rem;
            margin: 0 auto;
            margin-top: 0.293rem;
            padding: 0.266rem;
            box-sizing: border-box;
            background: #EEEEEE;
            font-size: 12px;
            color: #999999;
        }
    </style>
    <script src="./js/index.js"></script>
</head>

<body>
    <main>
        <!-- 轮播图 -->
        <div class="swiperBox">
            <div class="swiper-container top_img">
                <div class="swiper-wrapper">
                    <img class="swiper-slide slide" src="./img/comDetails.png" alt="">
                    <img class="swiper-slide slide" src="./img/comDetails.png" alt="">
                    <img class="swiper-slide slide" src="./img/comDetails.png" alt="">
                    <img class="swiper-slide slide" src="./img/comDetails.png" alt="">
                </div>
                <!-- 分页器 -->
                <div class="swiper-pagination"></div>
            </div>
        </div>
        <div class="flex com_name">
            <div>生活旧铁***斤</div>
            <div class="status">已卖出</div>
        </div>
        <div class="money">价格：156￥</div>
        <div class="com_text">类别：生活废旧</div>
        <div class="com_text">补充：</div>
        <div class="supplement">
            生活废铁生活废铁生活废铁生活废铁生活废铁生活废铁生活
            废铁生活废铁生活废铁生活废铁生活废铁生活废铁生活废铁
            生活废铁
        </div>
        <div class="flex footer">
            <div class="footer_li footer_active sy">
                <img src="./img/footer_img1.png" alt="">
                <div>首页</div>
            </div>
            <div class="footer_li fl">
                <img src="./img/footer_img2.png" alt="">
                <div>分类</div>
            </div>
            <div class="footer_li fw">
                <img src="./img/footer_img3.png" alt="">
                <div>服务</div>
            </div>
            <div class="footer_li wd">
                <img src="./img/footer_img4.png" alt="">
                <div>我的</div>
            </div>
        </div>
    </main>

    <script src="./js/jquery.js"></script>
    <script src="./js/swiper.js"></script>
    <script src="./js/public.js"></script>
    <script>
        //轮播图
        var mySwiper = new Swiper('.swiper-container', {
            loop: true, // 循环模式选项
            autoplay: {
                disableOnInteraction: false,
            },
            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },

        })
    </script>
</body>

</html>